
package com.insigma.business.qrcode.common.vo;


import java.util.LinkedHashMap;
import java.util.Map;


public enum RepresentationTypeEnum implements DescEnum {

    
    PLACEMENT("安置"),

    ;

    RepresentationTypeEnum(String desc) {
        this.desc = desc;
    }

    
    private String desc;

    @Override
    public String getDesc() {
        return desc;
    }

    
    public static RepresentationTypeEnum getByEnumName(final String enumName) {
        for (RepresentationTypeEnum element : values()) {
            if (element.name().equals(enumName)) {
                return element;
            }
        }
        return null;
    }

    
    public static Map<String,String> getName2DescMap(){
        Map<String,String> name2DescMap = new LinkedHashMap<>();
        for (RepresentationTypeEnum element : values()) {
            name2DescMap.put(element.name(), element.desc);
        }

        return name2DescMap;
    }

}
